<template>
  <div class="shou-cang">
    <div class="triangle"></div>
    <div class="left">
      <ul>
        <li class="li-active">
          默认收藏夹
          <span>3</span>
        </li>
        <li>
          稍后再看
          <span>0</span>
        </li>
      </ul>
    </div>
    <div class="right">
      <div class="video-list">
        <a href="#" class="item" v-for="item in 8" :key="item">
          <div class="item-pic">
            <el-image :src="require('../../assets/icon.jpg')"></el-image>
            <span>26P</span>
          </div>
          <div class="txt">
            <p>flex布局概览</p>
            <p>小秃头儿</p>
          </div>
        </a>
      </div>
      <!-- <div class="video-list-none">该收藏夹还没有视频哦~</div> -->
      <a href="#" class="play-all el-icon-caret-right">播放全部</a>
    </div>
  </div>
</template>
<script>
export default {}
</script>
<style scoped>
.shou-cang {
  display: none;
  position: absolute;
  top: 50px;
  left: -210px;
  width: 450px;
  height: 500px;
  background-color: #fff;
  z-index: 100;
  border-radius: 5px;
}
.left {
  float: left;
  width: 140px;
  height: 100%;
  border-right: 1px solid #ccc;
}
.left ul {
  margin-top: 10px;
}
.left li {
  color: #000;
  width: 100%;
  height: 50px;
  line-height: 50px;
  font-size: 14px;
  padding: 0 15px;
  cursor: pointer;
}
.right {
  width: 310px;
  float: left;
}
.left li span {
  float: right;
  color: #999;
}
.li-active {
  background-color: #00a1d6;
  color: #fff !important;
}
.li-active span {
  color: #fff !important;
}
.video-list {
  height: 450px;
  overflow: auto;
  padding-top: 10px;
}
.item {
  display: flex;
  height: 80px;
  padding-left: 20px;
  padding-top: 10px;
}
.item:hover {
  background-color: #ccc;
}
.item-pic {
  position: relative;
  width: 107px;
  height: 70px;
}
.item-pic span {
  position: absolute;
  bottom: 13px;
  right: 3px;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.3);
}
.txt p:nth-child(1) {
  color: #000;
  font-size: 14px;
  height: 43px;
  padding-left: 10px;
}
.txt p:nth-child(2) {
  color: #999;
  font-size: 12px;
  padding-left: 10px;
}
.play-all {
  display: block;
  width: 100%;
  height: 50px;
  border-top: 1px solid #ccc;
  line-height: 50px;
  color: #00a1d6;
  text-align: center;
  font-size: 14px;
}
.play-all:hover {
  background-color: #ccc;
}
.play-all::before {
  font-size: 25px;
  margin-right: 5px;
  vertical-align: top;
}
</style>
